/*
  This file is part of 'Trivial chess'.

  'Trivial chess' is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  'Trivial chess' is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with 'Trivial chess'.  If not, see <http://www.gnu.org/licenses/>.
*/

/* SVN FILE: $Id$ */
/**
 * @author         $Author$
 * @version        $Rev$
 * @lastrevision   $Date$
 * @filesource     $URL$
 */

#ifndef UNMAKEMOVEINFOSTD_H_
#define UNMAKEMOVEINFOSTD_H_

#include <boost/cstdint.hpp>

#include "UnmakeMoveInfoAbstract.h"

template<class M, class Mv, class CA, typename Int = int8_t>
class UnmakeMoveInfoStd
	: public UnmakeMoveInfoAbstract<UnmakeMoveInfoStd,M,Mv,CA,Int> {
public:
	UnmakeMoveInfoStd() {}

	Move move() const { return this->_move; }
	void setMove(const Move move) { this->_move = move; }
	Man capturedMan() const { return this->_capturedMan; }
	void setCapturedMan(const Man man) { this->_capturedMan = man; }
	CastlingAvailability castlingAvailability() const {
		return this->_castlingAvailability;
	}
	void setCastlingAvailability(const CastlingAvailability ca) {
		this->_castlingAvailability = ca;
	}
	Square enpassant() const { return this->_enpassant; }
	void setEnpassant(const Square enpassant) { this->_enpassant = enpassant; }
	Int halfmoveClock() const { return this->_halfmoveClock; }
	void setHalfmoveClock(const Int halfmoveClock) { this->_halfmoveClock = halfmoveClock; }

private:
	Move _move;
	Man _capturedMan;
	CastlingAvailability _castlingAvailability;
	Square _enpassant;
	Int _halfmoveClock;
};

#endif /* UNMAKEMOVEINFOSTD_H_ */
